import { createRouter, createWebHistory } from "vue-router";


import login from "../views/main/login.vue"
import home from "../views/main/home.vue"

import childJob from "../views/child/childJob.vue"
import childEnterprice from "../views/child/childEnterprice.vue"
import childHome from "../views/child/childHome.vue"
import childAbout from "../views/child/childAbout.vue"

const routes = [

    {
        path: "/main/login",
        name: 'login',
        component: login,
        meta: {
            title: "用户登录",
        }
    },
    {
        path: "/main/childHome",
        name: 'childHome',
        component: childHome,
        meta: {
            title: "首页",
        }
    },
    {
        path: "/main/childJob",
        name: 'childJob',
        component: childJob,
        meta: {
            title: "找工作",
        }
    },
    {
        path: "/main/childEnterprice",
        name: 'childEnterprice',
        component: childEnterprice,
        meta: {
            title: "找企业",
        }
    },
    {
        path: "/main/childAbout",
        name: 'childAbout',
        component: childAbout,
        meta: {
            title: "关于我们",
        }
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router